﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Plan_Manager.aspx.cs" Inherits="page_Plan_Manager" %>

<%@ Register TagPrefix="ShoveWebUI" Namespace="Shove.Web.UI" Assembly="Shove.Web.UI.4 For.NET 2.0" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>产品销售业务管理软件 - 套餐档案</title>
    <link href="../style/css.css" rel="stylesheet" type="text/css" />
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0;">
    <form id="form1" runat="server">
    <table id="Table1" cellspacing="0" cellpadding="0" width="98%" border="0" align="center">
        <tr>
            <td colspan="3" align="center">
                <table style="text-align: center;">
                    <tr>
                        <td>
                            <strong><span style="font-size: 12pt; color: #0099cc">套餐档案</strong>
                        </td>
                        <br />
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3">
                <asp:DataGrid ID="g" runat="server" BackColor="#6CA4E4" CellPadding="5" Width="100%"
                    CellSpacing="1" BorderWidth="0px" AllowSorting="True" AutoGenerateColumns="False"
                    AllowPaging="True" CssClass="gStyle" OnItemCommand="g_ItemCommand" OnItemDataBound="g_ItemDataBound">
                    <FooterStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
                    <SelectedItemStyle HorizontalAlign="Center" Font-Bold="True" ForeColor="White"></SelectedItemStyle>
                    <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" CssClass="gHeader">
                    </HeaderStyle>
                    <ItemStyle CssClass="gItem" BackColor="White" />
                    <Columns>
                        <asp:HyperLinkColumn DataNavigateUrlField="ID" DataNavigateUrlFormatString="PlanEdit.aspx?id={0}"
                            DataTextField="Name" HeaderText="套餐名称" SortExpression="ID"></asp:HyperLinkColumn>
                        <asp:BoundColumn DataField="Price" SortExpression="Price" HeaderText="套餐价格"></asp:BoundColumn>
                        <asp:BoundColumn DataField="Remark" SortExpression="Remark" HeaderText="备注"></asp:BoundColumn>
                        <asp:BoundColumn HeaderText="状态"></asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="操作">
                            <ItemTemplate>
                                <ShoveWebUI:ShoveConfirmButton ID="btnEdit" runat="server" BorderStyle="Solid" BorderWidth="1px"
                                    CommandName="btnEdit" Height="20px" Text="修改" Width="60px"></ShoveWebUI:ShoveConfirmButton>
                                <ShoveWebUI:ShoveConfirmButton ID="btnStart" runat="server" AlertText="确定要启用该商品套餐吗？"
                                    BorderStyle="Solid" BorderWidth="1px" CommandName="btnStart" Height="20px" Text="启用"
                                    Width="60px"></ShoveWebUI:ShoveConfirmButton>
                                <ShoveWebUI:ShoveConfirmButton ID="btnStop" runat="server" AlertText="确定要停用该商品套餐吗？"
                                    BorderStyle="Solid" BorderWidth="1px" CommandName="btnStop" Height="20px" Text="停用"
                                    Width="60px"></ShoveWebUI:ShoveConfirmButton>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn Visible="False" DataField="ID"></asp:BoundColumn>
                        <asp:BoundColumn Visible="False" DataField="IsUse"></asp:BoundColumn>
                    </Columns>
                    <PagerStyle Visible="False" HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC">
                        </PagerStyle>
                    </asp:DataGrid>
                    <ShoveWebUI:ShoveGridPager ID="gPager" BorderWidth="0" CssClass="gStyle" BorderStyle="None"
                        runat="server" Width="100%" ShowSelectColumn="False" DataGrid="g" OnPageWillChange="gPager_PageWillChange"
                        OnSortBefore="gPager_SortBefore" AlternatingRowColor="White" HotColor="White"
                        GuiseColor="False" ClientNavigation="true" PageSize="10" />
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align: center;">
                <asp:Button ID="btnAdd" runat="server" Text="新增套餐" Width="90px" OnClick="btnAdd_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
